import Vue from 'vue';
import Vuex from 'vuex';

Vue.use(Vuex);

const store = new Vuex.Store({
    state: {
        sendMsgMemberId: 0,
        unreadNum: 0
    },
    mutations: {
      msgMember(state, memberId) {
        state.sendMsgMemberId = memberId;
      },
      unread(state, num) {
        state.unreadNum = num;
      }
    }
});

export default store;
